package com.gopay.bis.cib.ebank.impl;

import com.gopay.bis.cib.ebank.operation.CibB2bQuery;
import com.gopay.common.domain.bank.BaseMessage;
import com.gopay.common.domain.bank.cib.ebank.CibMessage;
import com.gopay.common.exception.GopayException;
import com.gopay.remote.bank.ICertHelper;
import com.gopay.remote.bank.businesses.BankService;

/**
 * 兴业银行B2B网关支付
 * 
 * @CibB2bBankServiceImpl.java
 * @author zhengxue
 * @2014-11-21 下午2:52:39 www.gopay.com.cn Inc.All rights reserved.
 */
public class CibB2bBankServiceImpl implements BankService {
    private ICertHelper cibB2bCertHelper;
    private CibB2bQuery cibB2bQuery;

    public Object sign(BaseMessage msg) throws GopayException {
        return cibB2bCertHelper.sign(msg);
    }

    public Object verify(BaseMessage msg) throws GopayException {
        return cibB2bCertHelper.verify(msg);
    }

    public Object query(Object obj) throws GopayException {
        CibMessage message = (CibMessage) obj;
        return cibB2bQuery.query(message);
    }

    public void setCibB2bCertHelper(ICertHelper cibB2bCertHelper) {
        this.cibB2bCertHelper = cibB2bCertHelper;
    }

    public void setCibB2bQuery(CibB2bQuery cibB2bQuery) {
        this.cibB2bQuery = cibB2bQuery;
    }

	@Override
	public Object dayend(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object refund(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

}
